<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>浮动</title>
	<style type="text/css">
		div{
			width: 300px;
			height: 200px;
			font-size: 40px;
			color: #fff;/*
			float: right;*/
			float: left;
			/*display: inline-block;*/

		}
		.box1{
			height: 251px;
			background: red url() 0 0 no-repeat;
		}
		.box2{
			background: blue url() 0 0 no-repeat;
		}
		.box3{
			background: green url() 0 0 no-repeat;
		}
		.box4{
			background: yellow url() 0 0 no-repeat;
		}


	</style>
</head>
<body>
	<div class="box1">1</div>
	<div class="box2">2</div>
	<div class="box3">3</div>
	<div class="box4">4</div>
	<!-- 画色块 -->

</body>
</html>